#include<stdio.h>
int main()
{
	int m,n,i,a,b,k,sum;
	int a[10];
	scanf("%d %d",&m,&n);
	for(i=m;i<=n;i++){
		sum=0;
		for(a=1;a<=i/2;a++){
			if(i%a==0)
				sum+=a;			
	}
if(sum==i){
	k = 0;
            b[k++] = 1;
           for(a=1;a<=i/2;a++){
			if(i%a==0)
                b[k++] = a;
            }
            printf("%d = \n", i);              
            for(a = 0; a < k - 1; a++)
                printf("%d + ", b[a]);
            printf("%d\n", b[k - 1]);
		printf("%d= \n",i);
}
	}			
	return 0;
}
